package org.example;

import cn.com.jcoo.example.starter.SimpleProperties;
import cn.com.jcoo.example.starter.SimpleService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping
@RequiredArgsConstructor
public class SimpleApi {

	private final SimpleService simpleService;

	@GetMapping
	public SimpleProperties print(String name) {
		log.info(name);
		return simpleService.print();
	}
}
